package io.renren.modules.wyzsphone.commWithWCF;



import java.util.LinkedList;
import java.util.List;

public class FieldTemp {
    /// <summary>
    /// ID
    /// </summary>
    private int ID;
    public int getID(){
    	return this.ID;
    }
    public void setID(int ID){
    	this.ID=ID;
    }
    /// <summary>
    /// �ֶ���
    /// </summary>
    private String Key;
    public String getKey(){
    	return this.Key;
    }
    public void setKey(String Key){
    	this.Key=Key;
    }
    /// <summary>
    /// ����
    /// </summary>
    private String Name;
    public String getName(){
    	return this.Name;
    }
    public void setName(String Name){
    	this.Name=Name;
    }
    /// <summary>
    /// ��������
    /// </summary>
    private EnumFieldType Type;
    public EnumFieldType getType(){
    	 return this.Type;
    }
    public void setType(EnumFieldType Type) {
		this.Type=Type;
	}
    /// <summary>
    /// ������
    /// </summary>
    private int Index;
    public int getIndex(){
    	return this.Index;
    } 
    public void setIndex(int Index){
    	this.Index=Index;
    }
    /// <summary>
    /// ���������
    /// </summary>
    private int Page;
    public int getPage(){
    	return this.Page;
    }
    public void setPage(int Page){
    	this.Page=Page;
    }
    /// <summary>
    /// ������Ϣ
    /// </summary>
    private List<DropDownItem> DropDownList = new LinkedList<DropDownItem>();
    public List<DropDownItem> getDropDownList(){
    	return this.DropDownList;
    }
    public void setDropDownList(List<DropDownItem> DropDownList){
    	this.DropDownList=DropDownList;
    }
    
    /// <summary>
    /// �Ƿ���ʾ�ڹ����б�
    /// </summary>
    private Boolean IsFilter;
    public Boolean getIsFilter(){
    	return this.IsFilter;
    }
    public void setIsFilter(Boolean IsFilter){
    	this.IsFilter=IsFilter;
    }
    /// <summary>
    /// �Ƿ���ʾ��ʱ��
    /// </summary>
    private Boolean IsList;
    public Boolean getIsList(){
    	return this.IsList;
    }
    public void setIsList(Boolean IsList){
    	this.IsList=IsList;
    }
    /// <summary>
    /// �Ƿ���Ҫ����
    /// </summary>
    private Boolean NeedSave;
    public Boolean getNeedSave(){
    	return this.NeedSave;
    }
    public void setNeedSave(Boolean NeedSave){
    	this.NeedSave=NeedSave;
    }
    /// <summary>
    /// �Ƿ��������
    /// </summary>
    private Boolean MustInput;
    public Boolean getMustInput(){
    	return this.MustInput;
    }
    public void setMustInput(Boolean MustInput){
    	this.MustInput=MustInput;
    }
    /// <summary>
    /// �Ƿ��Ǻϼ��ֶ�
    /// </summary>
    private Boolean IsSum;
    public Boolean getIsSum(){
    	return this.IsSum;
    }
    public void setIsSum(Boolean IsSum){
    	this.IsSum=IsSum;
    }
    /// <summary>
    /// �п��
    /// </summary>
    private int Width;
    public int getWidth(){
    	return this.Width;
    }
    public void setWidth(int Width){
    	this.Width=Width;
    }
    /// <summary>
    /// �ֶγ���
    /// </summary>
    private int Length;
    public int getLength(){
    	return this.Length;
    }
    public void setLength(int Length){
    	this.Length=Length;
    }
    /// <summary>
    /// ����ֶ������б��Ӧֵ
    /// </summary>
    /// <param name="dataID">������ID</param>
    /// <returns></returns>
    public DropDownItem GetFieldDropDown(String dataID)
    {
        for (DropDownItem Value: DropDownList)
        {
            if (Value.getID() == dataID)
            {
                return Value;
            }
        }
        return null;
    }
    /// <summary>
    /// ����ֶ������б��Ӧֵ
    /// </summary>
    /// <param name="dataName">������ʾ��</param>
    /// <returns></returns>
    public DropDownItem GetFieldDropDownByName(String dataName)
    {
        for (DropDownItem Value: DropDownList)
        {
            if (Value.getName() == dataName)
            {
                return Value;
            }
        }
        return null;
    }
}
